import request from '@/utils/request'
// 登录接口
export const login = data => request.post('user/login', data)
// 注册接口
export const register = data => request.post('/user/registered', data)
// 用户详情接口
export const user = data => request.get('/user')
// 退出登录接口
export const logout = token => request.post('/user/logout', token)
